﻿using System;
using System.Collections.Generic;
using System.Linq;

namespace GurLoader.Service.ImgurTaskBuilder
{
    public class BatchImageUploadResult : ImgurProcessResult
    {
        private IEnumerable<ImageUploadResult> results = new List<ImageUploadResult>();

        public BatchImageUploadResult( IEnumerable<ImageUploadResult> res )
        {
            if ( res == null || !res.Any() )
                throw new ArgumentException("One or more result objects required.");

            this.Results = res;
        }

        public IEnumerable<ImageUploadResult> Results
        {
            get { return results; }
            private set { results = value; }
        }
    }
}
